package cn.tedu.test03;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.tedu.test03")
public class SpringConfig {
    //显式配置
    @Bean
    public Phone phone(){
        return new Phone();
    }

}